package com.lingjtx.auth.service;

import com.lingjtx.auth.entity.UnificationMenu;
import com.lingjtx.auth.entity.UnificationPerms;
import com.lingjtx.auth.po.MenuPermsPo;
import com.lingjtx.auth.vo.MenuPermsVo;

import java.util.List;

public interface MenuService {

    List<MenuPermsVo> menuList();

    boolean createMenu(UnificationMenu model);

    boolean updateMenu(UnificationMenu model);

    boolean deleteMenu(List<Long> menuIds);

    // 获取未分配菜单栏的权限标识
    List<UnificationPerms> ungroupMenuPerms();

    // 分配菜单栏所属权限标识
    boolean boundMenuPerms(MenuPermsPo model);

    // 删除菜单栏所属权限标识
    boolean unboundMenuPerms(List<String> perms);
}
